﻿// 高德地图使用 GCJ-02 坐标系，本软件内不做转换，故该类不再使用！！

#ifndef GAODEMAPPROVIDER_H
#define GAODEMAPPROVIDER_H

#include "MapProvider.h"

static const QString amapSatellite = QStringLiteral("http://webst01.is.autonavi.com/appmaptile?style=6&x=%1&y=%2&z=%3");
static const QString amapStreet = QStringLiteral("http://webst01.is.autonavi.com/appmaptile?style=8&ltype=7&x=%1&y=%2&z=%3");

class GaoDeMapProvider : public MapProvider
{
    Q_OBJECT
public:
    GaoDeMapProvider(const QString& format, const quint32 averageSize,
                        const QGeoMapType::MapStyle mapType, QObject*parent  = nullptr);
    ~GaoDeMapProvider() override = default;
};


/**
 * @brief The GaoDeSatelliteMapProvider class Bing 卫星影像图
 */
class GaoDeSatelliteMapProvider : public GaoDeMapProvider
{
public:
    GaoDeSatelliteMapProvider(QObject* parent = nullptr);
    ~GaoDeSatelliteMapProvider() override = default;

protected:
    QString _getURL(const int x, const int y, const int zoom, QNetworkAccessManager* networkManager) override;
};

class GaoDeStreetMapProvider : public GaoDeMapProvider
{
public:
    GaoDeStreetMapProvider(QObject* parent = nullptr);
    ~GaoDeStreetMapProvider() override = default;

protected:
    QString _getURL(const int x, const int y, const int zoom, QNetworkAccessManager* networkManager) override;
};

#endif // GAODEMAPPROVIDER_H
